//
//  SNMyArtelAssociatorCell.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/17.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "SNMyArtelAssociatorCell.h"
#import "UIImageView+WebCache.h"
@interface SNMyArtelAssociatorCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end
@implementation SNMyArtelAssociatorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    dispatch_async(dispatch_get_main_queue(), ^{
        self.iconImageView.layer.cornerRadius = self.iconImageView.bounds.size.width * 0.5;
        self.iconImageView.layer.masksToBounds = YES;
    });
}
-(void)setModel:(SNMyArtelMemberlist *)model{
    _model = model;
    
    [SNUtils getImageWithURLString:model.photo imageView:self.iconImageView];
    //    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.photo] placeholderImage:kUserIconDefaultImage];
    self.nameLabel.text = model.custName;
    
}

@end
